﻿<div class="box onethird floatright last">
    <h3 color="red">
        More Stats <a href="#" class="toggle">Toggle</a></h3>
    <div class="box-content">
        <h4>
            Your additional stats</h4>
        <ul class="relative">
            @if (ViewBag.GenericStatsList.Count>0)
            {
                foreach (dynamic item in ViewBag.GenericStatsList)
                {
                <li>
                    @item.Title
                    <p>
                        @Html.RouteLink("See stats", "Generic", new { controller = "DetailStats", action = "", id = ViewBag.UserGen.Username, id2 = item.Title })
                    </p>
                </li>   
                }
            }
            else
            {
                
                <text>
                No additional stats have been collected. Please see the links below to start adding additional 
                stats to your profile. 
                </text>
            }
            
        </ul>
        <h4>
            Add more stats now</h4>
        <ul class="relative">
            @foreach (dynamic item in ViewBag.GenericStatsListToAdd)
            {
                <li>
                    @item.Title
                    <p>
                        @if (item.MoreInfoURL != null)
                        {
                            <a href="@item.MoreInfoURL">Setup stats collection</a>

                        }
                        else
                        {
                           <text> Awaiting app link</text>
                        }
                    </p>
                </li>   
            }
        </ul>
    </div>
    <!-- /box-content -->
    <a href="#" class="view-all">View More Stats</a>
</div>
<!-- /box -->
